package com.zzc.service;

import com.zzc.common.JsonResult;
import com.zzc.common.TableResult;
import com.zzc.pojo.AdminUser;
import com.zzc.pojo.Customer;
import com.zzc.pojo.Role;

import java.util.List;

/**
 * @author zhouzhou
 */
public interface AdminUserService {

    /**
     * 根据id查询
     * @param id
     * @return
     */
    AdminUser selectByPrimaryKey(Integer id);



    JsonResult doLogin(String email, String password);

    /**
     * 查询用户列表
     * @param page
     * @param limit
     * @return
     */
    TableResult getUserList(String realName,String email,Integer status,Integer page,Integer limit);

    JsonResult updateByPrimaryKeySelective(AdminUser adminUser);

    JsonResult deleteUserById(Integer[] ids);

    JsonResult insertUser(AdminUser user);

    List<Integer> getUserRole(Integer userId);

    List<Role> getRoles();



    JsonResult updateUserRole(Integer userId, Integer[] roleIds);
}